home *** CD-ROM | disk | FTP | other *** search
/ BMUG Revelations / BMUG Revelations.toast / Utilities / Text and Speech / Alpha.5.81 / Help / Shells < prev    next >
Text File  |  1994-07-07  |  2KB  |  54 lines

  1. TCL SHELL 
  2.  
  3. The basic idea of the Tcl Shell is to provide an interactive way to access 
  4. TCL, it is *NOT* intended to serve as a pseudo-unix-shell. However, I don't 
  5. use MPW or AU/X, and therefore I implemented a few very useful unix shell 
  6. functions. 
  7.  
  8. All pathnames must be mac pathnames; relative pathnames start 
  9. with colons, absolute pathnames don't. For instance, ':file1' specifies a 
  10. file named 'file1' in the current directory. '::file2' specfies a file in 
  11. the parent directory, and ':::file3' is a file in the parent's parent's 
  12. directory. Additionally, hitting the tab key w/ a partial pathname invokes 
  13. a filename-completion function that tries to fill in the rest of the 
  14. characters of the name. 
  15.  
  16. The supported functions are all valid Tcl commands and the following:
  17.  
  18. cd <relative or absolute pathname>
  19.     Change directory. If called w/ no arguments, go to home directory if no 
  20.     arguments.
  21. cp <file1> <file2>
  22.     or
  23. cp <file1> .... <destDir>
  24.     Basic unix functionality, recursive.
  25.  
  26. grep <pat> <file>...
  27.     Grep, reasonably slow.
  28.  
  29. ls [-F|l] [<file>]...
  30.     Two, mutually exclusive flags. '-F' just gives the normal display, with 
  31.     a '*' behind applications and a '/' behind directories (folders). '-l' 
  32.     presents a long listing, including sizes of both forks, creator, file 
  33.     type, and last modification time. 'procs.tcl' includes functions 'l' and 
  34.     'll' which serve as my Unix aliases to 'ls -F' and 'ls -l'.
  35.     
  36. mv <file1> <file2>
  37.     or
  38. mv <file1> .... <destDir>
  39.     Moves a file, potentially across volume boundaries. Recursive.
  40.     
  41. rm [-r] <file>...
  42.     Removes files and empty directories. "-r" allows recursive removal, but 
  43.     DON'T BLAME ME IF YOU DELETE YOUR ENTIRE DRIVE!
  44.     
  45. wc <file>...
  46.     'wc' primitive from unix, counts lines, words, characters.
  47.  
  48. The file "shell.tcl" contains Tcl code implementing the shell interface. 
  49. You can change this to suit your tastes. One recent goody is that you can 
  50. re-execute previous commands merely by moving the cursor to the line and 
  51. hitting the return key. If there is no '>' character on the line when you 
  52. hit a carriage return, the return is an ordinary new line.
  53.  
  54.